﻿using HomeCinema.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HomeCinema.Data.Configurations
{
  public class GenreConfiguration:EntityBaseConfiguration<Genre>
    {
      public GenreConfiguration() {
           //public EntityBaseConfiguration() da co id la khoa chinh tu class base
           // {
           //     HasKey(e => e.ID); // ID thiet lap tu Class Interface
           // }
          Property(g => g.Name).IsRequired().HasMaxLength(50);
      }
    }
}
